<div class="clear"></div>
<div><br /><br /></div>
<div class="footer_main">
	<!-- Start Footer -->
	<?php // Take single Text Row
		$sql = "select a.* 
				from tbl_text a 
					left join ms_module b 
						on 		a.moduleid = b.moduleid 
							and b.stsrc = 'A' 
				where 	a.stsrc = 'A' 
					and b.modulename = 'footer' 
					and b.moduleid = '8' 
					and a.textstatus = 1 
				order by a.textposition asc limit 0,1
				";
		$exe = mysql_query($sql) or die(mysql_error());
		$num = mysql_num_rows($exe);
		$row = mysql_fetch_array($exe);
		
		if($num > 0)
		{
	?>
	<div>
		<?php echo stripslashes(html_entity_decode($row['textcontent'])); // mysql_real_escape_string required when insert/update at back end ?>
	</div>
	<?php
		}
	?>
	<!-- End Footer -->
</div>
